import Home from '../pages/home';
import Login from '../pages/login';
import Layout from '../pages/layout';
import Register from '../pages/register/index.jsx'
import AuthRouter from '../components/auth/AuthRouter';

import me from "./modules/me.jsx"
import order from './modules/order.jsx';
import project from './modules/project.jsx';
import home from './modules/home.jsx'
import appointment from './modules/appointment.jsx'
import promote from './modules/promote.jsx'

const routes = [
  //路由表
  {
    path: "/login",
    element: <Login />,

  },
  {
    path: '/register',
    element: <Register></Register>
  },
  {
    path: "/",
    element: <AuthRouter><Layout /></AuthRouter>,
    children: [
      me,
      order,
      home,
      project,
      appointment,
      promote
    ]
  },
]

export default routes